import request from '@/config/axios'

/** BPM 流程实例评论信息 */
export interface ProcessInstanceRemark {
  id: number; // 编号
  userId?: number; // 用户编号
  processInstanceId?: string; // 流程实例的编号
  remark: string; // 评论
}


// BPM 流程实例评论 API
export const ProcessInstanceRemarkApi = {
  // 查询BPM 流程实例评论分页
  getProcessInstanceRemarkList: async (params: any) => {
    return await request.get({url: `/bpm/process-instance/remark/list`, params})
  },


  // 新增BPM 流程实例评论
  createProcessInstanceRemark: async (data: ProcessInstanceRemark) => {
    return await request.post({url: `/bpm/process-instance/remark/create`, data})
  },


}
